import request from '@/utils/request'

export function chat(data) {
    return request({
        url: '/socket/chat/send',
        method: 'post',
        data
    })
}

export function message(sendId) {
    return request({
        url: '/socket/chat/message',
        method: 'get',
        params: {sendId}
    })
}